package model;

/**
 * Implementation of single document that will be stored in MongoDB. Fields of this class will change.
 * @author Ilija
 * @version 1.0
 */

public class Document {

    private int idFromRDB; //id from initial relational database of Open Parliament
    private String text; //text of MP's speech given to the Parliament
    private String mpName; //MP's name
    private String date; //date when speech is given
	
	public Document(int idFromRDB, String text, String mspName, String date) {
		this.idFromRDB = idFromRDB;
		this.text = text;
		this.mpName = mspName;
		this.date = date;
	}

	@Override
	public String toString() {
		return "Document [idFromRDB=" + idFromRDB + ", text=" + text
				+ ", mspName=" + mpName + ", date=" + date
				+ "]";
	}

	public int getIdFromRDB() {
		return idFromRDB;
	}

	public void setIdFromRDB(int idFromRDB) {
		this.idFromRDB = idFromRDB;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getMpName() {
		return mpName;
	}

	public void setMpName(String mpName) {
		this.mpName = mpName;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}


}
